<!DOCTYPE>
<html>
<head>
	<title></title>
</head>
<body>
	<button>点击生成数组</button>
	<ul></ul>
</body>
<script src="词库模型.js"></script>
<script type="text/javascript">
/*var arr = [7,8,9,4,5,6,1,2,3];
var arr1 = [];
function a(star,leng){
	arr.splice(star,leng);
}
a(1,2);
function b(c){
	console.log(arr.indexOf(c));
};
b(7);
function c(w){
	for (var i = 0; i < arr.length; i++) {
		if (arr[i] != arr[w]) {
			arr1.push(arr[i]);
		}		
	}console.log(arr1);
}
c()*/


/*
var arr = [45,6,15,166,9];
var arr1 = [];
for (var i = 0; i < arr.length; i++) {
	if(arr[i]==arr.shift()){
		arr1.unshift(arr[i]);
	}
}
console.log(arr);
*/

$("button")[0].onclick = function(){
	var p = document.createElement("li");
	$("ul")[0].appendChild(p);
	p.innerText = Math.floor(Math.random()*100);
}


   
</script>
</html>